package com.ledong.se.io;

import java.net.URL;

public class TestRealPath {

    public static void main(String[] args) {
        // String path =
        // "/usr/local/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5717620751061397335gmps-exp.war/WEB-INF/classes/";
        TestRealPath t = new TestRealPath();
        String path = t.getPath();
        System.out.println(path);
    }

    String getPath() {
        URL url = this.getClass().getClassLoader().getResource("");
        return url.getPath();
    }
}
